import request from '@/utils/request'

/**
 * @description: 导入银行存款收款单数据
 * @return {*}
 */
export function CashierImportData(data) {
  return request({
    url: '/CashierImportData',
    method: 'post',
    data: data
  })
}

/**
 * @description: 导入银行存款收款单数据
 * @return {*}
 */
export function CashierOutImportData(data) {
  return request({
    url: '/CashierOutImportData',
    method: 'post',
    data: data
  })
}

/**
 * @description: 导入采购订单数据
 * @return {*}
 */
export function SalesImportData(data) {
  return request({
    url: '/SalesImportData',
    method: 'post',
    data: data
  })
}

/**
 * @description: 导入销售订单数据
 * @return {*}
 */
export function PurchaseImportData(data) {
  return request({
    url: '/PurchaseImportData',
    method: 'post',
    data: data
  })
}
/**
 * @description: 导入厂内生产工单数据
 * @return {*}
 */
export function FactoryProductionImportData(data) {
  return request({
    url: '/FactoryProductionImportData',
    method: 'post',
    data: data
  })
}

/**
 * @description: 其他入库单数据
 * @return {*}
 */
export function OtherWarehouseInImportData(data) {
  return request({
    url: '/OtherWarehouseInImportData',
    method: 'post',
    data: data
  })
}
/**
 * @description:下载模板
 * @return {*}
 */
export function downloadTemplateApi(params) {
  return request({
    url: '/downloadTemplate',
    method: 'get',
    params
  })
}

/**
 * @description:数据解析接口
 * @return {*}
 */
export function analysisDataApi(data) {
  return request({
    url: '/analysisData',
    method: 'post',
    data
  })
}
